import baseUrl from '@/api/env.js'
export default {
	// 登录
	login:baseUrl + '/company/credit',
	get:baseUrl+'/login/password/',
	// 账号登录
	accountLogin: baseUrl + '/auth/oauth/token',
	// 发送短信
	sendCode: baseUrl + '/sms/sendCode',
	// 获取用户信息
	getLoginInfo: baseUrl + '/system/user/getInfo',
	// 获取菜单
	getMenu: baseUrl + '/system/menu/getAppRouters',
	// 手机号验证
	checkVerifyCode: baseUrl + '/system/user/profile/validatorSmsCode',
	// 验证码验证
	equalsSmsCode: function(phone,code) {
		return baseUrl + '/sms/equals/smsCode/'+phone+'/login/'+code;
	},
	// 登录退出
	logout: baseUrl + '/auth/authApi/logout',
	//修改密码
	updatePwd: baseUrl + '/system/user/profile/updatePwd',
	//请求地址拼接
	getPhone:(phone,code)=>{
		return baseUrl+`/system/user/profile/validatorSmsCode/${phone}/login/${code}`;
	},

	/**
	 * 通过微信code获取unionid
	 * @Author huzhiguo
	 * @Date 2023/1/31
	 * @Param code
	 **/
	getUnionid: function(app,code){
		return baseUrl + "/auth/authApi/wechart/getUnionid/"+app+'/'+ code;
	},

	/**
	 * 微信绑定
	 * @Author huzhiguo
	 * @Date 2023/1/31
	 * @Param code
	 **/
	wechatBinding: function(unionid,loginAccount){
		return baseUrl + "/auth/authApi/wechat/binding/"+unionid+'/'+ loginAccount;
	},
}